package day09;

import homework.Person;

public class TestStudent {
    public static void main(String[] args) {
        Student s1=new Student(1,"1011",18);
        Student s2=new Student(2,"1014",20);

        System.out.println(s1.equals(null));
        System.out.println(s1 ==s1);
        System.out.println(s1.equals(s1));
        System.out.println(s1.equals(s2));

        Person p = new Person("王玉迎",2,true,true);

        System.out.println(s1.equals(p));//false

    }
}
